package com.kaibes.core.base.util;

public class IntegerUtils {

    public static boolean isZero(Integer i) {
        return i==null||i==0;
    }
    
    public static boolean isNotZero(Integer i) {
        return i != null && i != 0;
    }
    
    //==============
    public static <T> Integer returnInt(Integer num) {
        return num==null?0:num;
    }
    
    public static <T> Short returnShort(Short num) {
        return num==null?0:num;
    }
    
}
